function wait(second = 3000) {
    return new Promise(resolve => setTimeout(resolve, second));
}

function isPlainObject(obj) {
    return Object.prototype.toString.call(obj) === '[object Object]';
}

module.exports = {wait, isPlainObject};